package com.gc.frontend.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.gc.common.dto.HistoryPositionBusinessDTO;
import com.gc.common.entity.HistoryPositionBusiness;
import com.gc.common.mapper.HistoryPositionBusinessMapper;
import com.gc.frontend.service.HistoryPositionBusinessService;
import org.springframework.stereotype.Service;

/**
 * @author 章瑱彬
 *         电话：15914921094
 *         QQ：562800930
 * @since 2015年4月2日
 */
@Service
public class HistoryPositionBusinessServiceImpl implements HistoryPositionBusinessService {

    @Autowired
    private HistoryPositionBusinessMapper historyPositionBusinessMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return this.historyPositionBusinessMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HistoryPositionBusiness record) {
        return this.historyPositionBusinessMapper.insert(record);
    }

    @Override
    public int insertSelective(HistoryPositionBusiness record) {
        return this.historyPositionBusinessMapper.insertSelective(record);
    }

    @Override
    public HistoryPositionBusiness selectByPrimaryKey(Integer id) {
        return this.historyPositionBusinessMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HistoryPositionBusiness record) {
        return this.historyPositionBusinessMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HistoryPositionBusiness record) {
        return this.historyPositionBusinessMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HistoryPositionBusiness> selectByDTO(HistoryPositionBusinessDTO dto) {
        return this.historyPositionBusinessMapper.selectByDTO(dto);
    }

    @Override
    public int deleteInIds(String ids) {
        return this.historyPositionBusinessMapper.deleteInIds(ids);
    }

    @Override
    public int deleteInCarIds(String carIds) {
        return this.historyPositionBusinessMapper.deleteInCarIds(carIds);
    }

    @Override
    public int deleteInHistoryIds(String historyIds) {
        return this.historyPositionBusinessMapper.deleteInHistoryIds(historyIds);
    }

    @Override
    public List<Map<String, Object>> selectLatestHistorys() {
        return this.historyPositionBusinessMapper.selectLatestHistorys();
    }

    @Override
    public List<HistoryPositionBusiness> selectHistoryPositionByHistoryId(Integer historyId) {
        return this.historyPositionBusinessMapper.selectHistoryPositionByHistoryId(historyId);
    }
}
